import { Navigate, redirect } from 'react-router-dom'
import { children, lazy } from 'react'
let Login = lazy(() => import("../../views/chen/login"))
let Index2 = lazy(() => import("../../views/chen/index2"))
let Index1 = lazy(() => import("../../views/chen/index1"))
let Phone = lazy(() => import("../../views/chen/phone"))
let Face = lazy(() => import("../../views/chen/face"))
let Pwdlogin = lazy(() => import("../../views/chen/pwdlogin"))
let Chen = [
    {
        path: '/',
        element: <Navigate to='/chen/login/Pwdlogin'></Navigate>
    },
    {
        path: "/chen/Login",
        element: <Login></Login>,
        children: [
            {
                path: "phone",
                element: <Phone></Phone>
            },
            {
                path: "face",
                element: <Face></Face>
            },
            {
                path: "pwdlogin",
                element: <Pwdlogin></Pwdlogin>
            },
        ],
    },
    {
        path: "/chen/index2",
        element: <Index2></Index2>
    },
    {
        path: "/chen/index1",
        element: <Index1></Index1>
    }
]

export default Chen